package com.ruoyi.business.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 客户信息对象 bu_custom
 *
 * @author ruoyi
 * @date 2024-08-28
 */
@Data
public class BuCustom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long customId;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String customName;

    /** 地址 */
    @Excel(name = "地址")
    private String avatar;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 绑定业务员ID */
    @Excel(name = "绑定业务员ID")
    private Long bindUserId;
    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;
    /** 客户类型（1商超 2医药 3工厂） */
    @Excel(name = "客户类型", readConverterExp = "1=商超,2=医药,3=工厂")
    private String customType;
    //客户logo
    private String logo;
    private String bindDeptName;
    private String bindUserName;
    /** 省 */
    @Excel(name = "省")
    private String province;

    /** 市 */
    @Excel(name = "市")
    private String city;

    /** 省code */
    @Excel(name = "省code")
    private Long provinceId;

    /** 市code */
    @Excel(name = "市code")
    private Long cityId;

    /** 客户配置 */
    @Excel(name = "客户配置")
    private Integer customAllocation;

    private List<BuSharing> buSharingList;

    public void setCustomId(Long customId)
    {
        this.customId = customId;
    }

    public Long getCustomId()
    {
        return customId;
    }
    public void setCustomName(String customName)
    {
        this.customName = customName;
    }

    public String getCustomName()
    {
        return customName;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setBindUserId(Long bindUserId)
    {
        this.bindUserId = bindUserId;
    }

    public Long getBindUserId()
    {
        return bindUserId;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("customId", getCustomId())
            .append("customName", getCustomName())
            .append("avatar", getAvatar())
            .append("phoneNumber", getPhoneNumber())
            .append("userId", getUserId())
            .append("bindUserId", getBindUserId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
